package proxy1;

public class UserServiceProxy implements IUserService {

    private UserServiceImpl userService ;

    public UserServiceProxy(UserServiceImpl userService) {
        this.userService = userService;
    }

    @Override
    public void save() {
        System.out.println("开启事务 代码增强");

        userService.save();

        System.out.println("提交事务 代码增强");
    }
}
